package com.jzr.mybatis.generator;

/*
t_app_version,t_bed,t_care_label,t_charge,t_code_list,
t_doctor,t_doctor_order,t_nurse,t_patient,
t_patient_care_label_ref,t_patient_extra,t_pda_page,
t_pda_page_control,t_pda_page_data,t_pda_page_option,
t_user,t_vital_sign,v_patient
 */
public class PdaDb1CodeGenerator {
    public static void main(String[] args) {
        MyConfig myConfig = new MyConfig() {{
            dbUrl = "jdbc:mysql://192.168.1.9:3306/jzr_medical?useUnicode=true&useSSL=false&autoReconnect=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8";
            dbDriverName = "com.mysql.cj.jdbc.Driver";
            dbUsername = "root";
            dbPassword = "Mff@2099";
            subProjectPath = "pda-service";
            packagePath = "com.jzr.pda";
            modelName = "db1";
            tableNames = InputHelper.scanner(subProjectPath+"表名，多个英文逗号分割");
            enableMapper = true;
            enableService = false;
            enableController = false;
            enableOther = true;
            fileOverride = true;
            enableGetId = 1;  //0:不生成getId, 1:生成getId
            isSuperEntityGeneric = 0; //继承类是否是泛型
            superEntityClass = null;
        }};

        GeneratorHelper.generate(myConfig);
    }
}
